package view;

import java.awt.BorderLayout;
import java.util.ArrayList;
import javax.swing.*;
import ProjectYudisium.PeriksaYudisiumTableModel;
import ProjectYudisium.Yudisium;

public class PanelLihatTabelYudisium extends JPanel {

    private JTable tablePublikasi;
    private JLabel labelPanel;

    public PanelLihatTabelYudisium() {
    }
    private ArrayList<Yudisium> data;

    public PanelLihatTabelYudisium(ArrayList<Yudisium> DAFTAR_MAHASISWA) {
            setLayout(new BorderLayout());
            this.data = data;

            labelPanel = new JLabel("Lihat Yudisium");
            labelPanel.setHorizontalAlignment(JLabel.CENTER);
            add(labelPanel, BorderLayout.NORTH);

            tablePublikasi = new JTable();
            tablePublikasi.setModel(new PeriksaYudisiumTableModel(data));
            add(tablePublikasi, BorderLayout.CENTER);
        }

    public ArrayList<Yudisium> getData() {
        return data;
    }

    public void setData(ArrayList<Yudisium> data) {
        this.data = data;
    }
}